package es.us.isa.jdbl.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="node", catalog = "webisa")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="type", discriminatorType=DiscriminatorType.STRING)
public abstract class AbstractNode {//implements Serializable{

	@Id
	@Column(name="nid")
	private int id;
	
	private int vid;
	
	private String language;
	
	private String title;
	
	private int status;
	
	private int created;
	
	private int changed;
	
	private int comment;
	
	private int promote;
	
	private int moderate;
	
	private int sticky;
	
	private int tnid;
	
	private int translate;
	
	
	public AbstractNode(){
		
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getCreated() {
		return created;
	}

	public void setCreated(int created) {
		this.created = created;
	}

	public int getChanged() {
		return changed;
	}

	public void setChanged(int changed) {
		this.changed = changed;
	}

	public int getComment() {
		return comment;
	}

	public void setComment(int comment) {
		this.comment = comment;
	}

	public int getPromote() {
		return promote;
	}

	public void setPromote(int promote) {
		this.promote = promote;
	}

	public int getModerate() {
		return moderate;
	}

	public void setModerate(int moderate) {
		this.moderate = moderate;
	}

	public int getSticky() {
		return sticky;
	}

	public void setSticky(int sticky) {
		this.sticky = sticky;
	}

	public int getTnid() {
		return tnid;
	}

	public void setTnid(int tnid) {
		this.tnid = tnid;
	}

	public int getTranslate() {
		return translate;
	}

	public void setTranslate(int translate) {
		this.translate = translate;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setVid(int vid) {
		this.vid = vid;
	}

	public int getVid() {
		return vid;
	}
}
